package tolgahan.albayrak.as3.reflection
{
	public class MemberInfo
	{
		protected var _baseType:Type;
		protected var _name:String;
		protected var _memberIndex:uint;
		
		public function MemberInfo(xml:XML, baseType:Type, memberIndex:uint)
		{
			if(!xml)
				return;
			_name = xml.@name[0];
			_baseType = baseType;
			_memberIndex = memberIndex;
		}
		
		public function get memberIndex():uint
		{
			return _memberIndex;
		}
		
		public function get name():String
		{
			return _name;
		}
		
		public function get memberOf():Type
		{
			return _baseType;
		}
	}
}